@extends('layouts.main')
@section('title', "编辑通讯录")
@section('content')
    <div class="panel panel-default">
        <div class="panel-heading">
            编辑通讯录
        </div>
        <div class="panel-body">
            <form role="form" action="{{route('user.update.post',['id'=>$user->id])}}" method="post">
                {{csrf_field()}}
                <div class="form-group">
                    <label>姓名</label>
                    <input type="text" name="name" class="form-control" value="{{$user->name}}">
                    <input type="hidden" name="id" class="form-control" value="{{$user->id}}">
                </div>
                <div class="form-group">
                    <label>手机号码</label>
                    <input type="text" name="telephone" class="form-control" value="{{$user->telephone}}">
                </div>
                <div class="form-group">
                    <label>工作单位</label>
                    <input type="text" name="company" class="form-control" value="{{$user->company}}">
                </div>
                <div class="form-group">
                    <label>邮箱地址</label>
                    <input type="text" name="email" class="form-control" value="{{$user->email}}">
                </div>
                <button type="submit" class="btn btn-primary">保存联系人</button>
                <a class="btn btn-danger" href="javascript:history.go(-1)">返回</a>
            </form>
        </div>
    </div>
@endsection